@extends('base')
@section('content')
    <div class="bg_wh">
        <div class="news_banner">
            <div class="news_banner_fl"><img src="{{asset('/image/news_banner.jpg')}}" /></div>
            <div class="news_banner_fr">
                <p class="news_use"><i class="liststyle_no nowrap">用智能手机、智能蓝牙开门</i><span class="webkit2">单一卡片或智能手机的融合应用单一卡片或智能手机的融合应用</span></p>
                <ul class="hots">
                    <li><a href="#">2015年海康能轻松做到200亿？</a></li>
                    <li><a href="#">物理网发展融合蓝牙技术 芯片如何选择</a></li>
                </ul>
            </div>
        </div>
        <div class="news_con bor_no">
            <div class="details">
                <ul class="details_menu">
                    <li><a href="#">全部</a></li>
                    <span class="fl">></span>
                    <li><a href="#">行业资讯</a></li>
                    <span class="fl">></span>
                    <li><a href="#">资讯详情</a></li>
                </ul>
                <div class="details_con">
                    <article>
                        <?php $item = json_decode($model->content,true) ?>
                        <div class="details_tit">
                            <h2>{{$model->name}}</h2>
                            <p>{{date('Y年m月d日 H:i', strtotime($model->created_at))}}<span class="fr">来源：{{$item['source']}}</span></p>
                        </div>
                        {!! $item['content'] !!}
                    </article>
                </div>
            </div>
            <div class="news_con_fr">
                <div class="news_cell">
                    <p class="cell_name pos_re">
                        热门标签
                        <span></span>
                    </p>
                    <ul class="news_tlist">
                        <li><a href="#">AR增强现实</a></li>
                        <li><a href="#">智能硬件</a></li>
                        <li><a href="#">小米X6</a></li>
                        <li><a href="#">O2O上门</a></li>
                        <li><a href="#">河狸家</a></li>
                        <li><a href="#">熊猫拿拿</a></li>
                    </ul>
                </div>
                <div class="news_cell">
                    <p class="cell_name pos_re">
                        产品推荐
                        <span></span>
                    </p>
                    <div class="bgfcfc overflow">
                        @foreach($pros as $pro)
                            <?php $item = json_decode($pro->content,true) ?>
                            <dl class="news_tplist">
                                <dt><img src="{{asset("/img/product-".$item['productpic'].'/126-86')}}"/></dt>
                                <dd class="nowrap">
                                    {{$pro->name}}
                                </dd>
                                <dd class="webkit2">{{$item['description']}}</dd>
                            </dl>
                        @endforeach
                        <p class="news_comein"><a href="{{url('/pro')}}">进入产品中心>></a></p>
                    </div>
                </div>
                <div class="news_cell">
                    <p class="cell_name pos_re">
                        热门资讯
                        <span></span>
                    </p>
                    <div class="bgfcfc news_information overflow">
                        @foreach($hots as $hot)
                            <p><a href="{{url('/news/detail/'.$hot->id)}}">{{$hot->name}}</a></p>
                        @endforeach
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div style="clear: both;"></div>
@stop